import React from 'react';

import {
  BrowserRouter as Router,
  Route,
  Switch,
} from 'react-router-dom'

import Home from './component/home';
import Product from './component/product';
import Discover from './component/discover';
import Topics from './component/topics';
import User from './component/user';
import Payment from './component/payment';
import Order from './component/order';

import './less/global.less';
import './less/index.less';


const BasicExample = () => (
  <Router>
    <Switch>
      <Route path="/payment" component={Payment} />
      <Route path="/order" component={Order} />
      <Route exact path="/" component={Home}/>
      <Route path="/product" component={Product}/>
      <Route path="/discover" component={Discover}/>
      <Route path="/user" component={User}/>
      <Route path="/topics" component={Topics}/>
    </Switch>
  </Router>
);



export default BasicExample